package idiet.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the customer database table.
 * 
 */
@Entity
public class Customer implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String address;

	private int age;

	private BigDecimal bust;

	private String cellphone;
	@Column(name="basic_comment")
	private String basicComment;
	
	@Column(name="physiologic_comment")
	private String physiologicComment;
	
	@Column(name="nurse_comment")
	private String nurseComment;
	
	private String effect;

	private String email;

	@Temporal(TemporalType.DATE)
	@Column(name="fore_end_date")
	private Date foreEndDate;

	@Temporal(TemporalType.DATE)
	@Column(name="fore_start_date")
	private Date foreStartDate;

	private String gender;

	private BigDecimal height;

	private BigDecimal hips;

	private String im;

	@Column(name="lm_timestamp")
	private Timestamp lmTimestamp;

	private String name;
	@ManyToOne
	@JoinColumn(name="nation_id")
	private Nation nation;

	private String postaladdress;

	private String postalcode;
	@ManyToOne
	@JoinColumn(name="target_id")
	private NurseTarget nurseTarget;

	private String telephone;

	private BigDecimal waist;

	private BigDecimal weight;

	//bi-directional many-to-one association to CustomerPal
	@ManyToOne
	@JoinColumn(name="pal_id")
	private CustomerPal customerPal;
	
	@OneToMany(mappedBy="customer")
	List<CustomerNurse> customerNurses;
	@OneToOne
	@JoinColumn(name="resource_id")
	private Resource resource;
	
	public Customer() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getAge() {
		return this.age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public BigDecimal getBust() {
		return this.bust;
	}

	public void setBust(BigDecimal bust) {
		this.bust = bust;
	}

	public String getCellphone() {
		return this.cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}


	public String getBasicComment() {
		return basicComment;
	}

	public void setBasicComment(String basicComment) {
		this.basicComment = basicComment;
	}

	public String getPhysiologicComment() {
		return physiologicComment;
	}

	public void setPhysiologicComment(String physiologicComment) {
		this.physiologicComment = physiologicComment;
	}

	public String getNurseComment() {
		return nurseComment;
	}

	public void setNurseComment(String nurseComment) {
		this.nurseComment = nurseComment;
	}

	public String getEffect() {
		return this.effect;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getForeEndDate() {
		return this.foreEndDate;
	}

	public void setForeEndDate(Date foreEndDate) {
		this.foreEndDate = foreEndDate;
	}

	public Date getForeStartDate() {
		return this.foreStartDate;
	}

	public void setForeStartDate(Date foreStartDate) {
		this.foreStartDate = foreStartDate;
	}

	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public BigDecimal getHeight() {
		return this.height;
	}

	public void setHeight(BigDecimal height) {
		this.height = height;
	}

	public BigDecimal getHips() {
		return this.hips;
	}

	public void setHips(BigDecimal hips) {
		this.hips = hips;
	}

	public String getIm() {
		return this.im;
	}

	public void setIm(String im) {
		this.im = im;
	}

	public Timestamp getLmTimestamp() {
		return lmTimestamp;
	}

	public void setLmTimestamp(Timestamp lmTimestamp) {
		this.lmTimestamp = lmTimestamp;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Nation getNation() {
		return nation;
	}

	public void setNation(Nation nation) {
		this.nation = nation;
	}

	public NurseTarget getNurseTarget() {
		return nurseTarget;
	}

	public void setNurseTarget(NurseTarget nurseTarget) {
		this.nurseTarget = nurseTarget;
	}

	public String getPostaladdress() {
		return this.postaladdress;
	}

	public void setPostaladdress(String postaladdress) {
		this.postaladdress = postaladdress;
	}

	public String getPostalcode() {
		return this.postalcode;
	}

	public void setPostalcode(String postalcode) {
		this.postalcode = postalcode;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public BigDecimal getWaist() {
		return this.waist;
	}

	public void setWaist(BigDecimal waist) {
		this.waist = waist;
	}

	public BigDecimal getWeight() {
		return this.weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}

	public CustomerPal getCustomerPal() {
		return this.customerPal;
	}

	public void setCustomerPal(CustomerPal customerPal) {
		this.customerPal = customerPal;
	}

	public List<CustomerNurse> getCustomerNurses() {
		return customerNurses;
	}

	public void setCustomerNurses(List<CustomerNurse> customerNurses) {
		this.customerNurses = customerNurses;
	}

	public Resource getResource() {
		return resource;
	}

	public void setResource(Resource resource) {
		this.resource = resource;
	}
}